# 定义元组符号：()
# 在定义元组的时候小括号可以省略
# t1 = (1, 2, 3, 4)
# t2 = 'a', 'b', 'c'

# print(t1, type(t1))  # <class 'tuple'>
# print(t2, type(t2))  # <class 'tuple'>
# 定义空元组
# t3 = ()
# t4 = tuple()
# print(t3, type(t3))
# print(t4, type(t4))
# for i in t2:
#     print(i)
# t = (123, 456, 789, 123, 123, 1, 123)
# print('最大值：', max(t))
# print('最小值：', min(t))
# # 语法格式：统计元素出现次数
# # 元组.count(元素值)
# print('统计元素出现的次数：', t.count(123))
# print(len(t))
#
# # 通过元素索引提取元素值
# print(t[1])

# 帮我从这一组字典里找出最大和最小的值
original_dict = {'apple': 5, 'banana': 3, 'cherry': 7, 'date': 1}
# l1 = []
# for i in original_dict:
#     l1.append(original_dict[i])
#
# print(l1)
# print('最大值：', max(l1))
# print('最小值：', min(l1))
print('最小值：', min(original_dict.values()), '最大值', max(original_dict.values()))
